#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QMouseEvent>
#include <QPainter>
#include <QPoint>
#include <QDebug>
#include <QPushButton>
#include <QList>

#include "helpwidget.h"
#include "lockwidget.h"
#include "checkbox.h"

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();
    void mousePressEvent(QMouseEvent*event) override;
    void mouseMoveEvent(QMouseEvent*event)  override;
    void mouseReleaseEvent(QMouseEvent*event)   override;
    void paintEvent(QPaintEvent *event) override;

    CheckBox ckb1;
private slots:
    void on_btnHelp_clicked();

    void on_btnLock_clicked();
private:
    HelpWidget * helpWidget;
    LockWidget * lockWidget;
    Ui::Widget *ui;
    QPoint curPos;
    bool isPressed;
    QList<QPushButton*> No1;
    QList<QPushButton*> No2;
    QList<QPushButton*> No3;
    QList<QPushButton*> No4;
    QList<QPushButton*> No5;

};
#endif // WIDGET_H
